package com.ruoyi.cost.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cost.mapper.OrganizationMapper;
import com.ruoyi.cost.domain.Organization;
import com.ruoyi.cost.service.IOrganizationService;

/**
 * 内设机构Service业务层处理
 * 
 * @author 王志旸
 * @date 2024-07-09
 */
@Service
public class OrganizationServiceImpl  extends ServiceImpl<OrganizationMapper,Organization> implements IOrganizationService



{
    @Autowired
    private OrganizationMapper organizationMapper;

    /**
     * 查询内设机构
     * 
     * @param id 内设机构主键
     * @return 内设机构
     */
    @Override
    public Organization selectOrganizationById(String id)
    {
        return organizationMapper.selectOrganizationById(id);
    }

    /**
     * 查询内设机构列表
     * 
     * @param organization 内设机构
     * @return 内设机构
     */
    @Override
    public List<Organization> selectOrganizationList(Organization organization)
    {
        return organizationMapper.selectOrganizationList(organization);
    }

    /**
     * 新增内设机构
     * 
     * @param organization 内设机构
     * @return 结果
     */
    @Override
    public int insertOrganization(Organization organization)
    {
        return organizationMapper.insertOrganization(organization);
    }

    /**
     * 修改内设机构
     * 
     * @param organization 内设机构
     * @return 结果
     */
    @Override
    public int updateOrganization(Organization organization)
    {
        return organizationMapper.updateOrganization(organization);
    }

    /**
     * 批量删除内设机构
     * 
     * @param ids 需要删除的内设机构主键
     * @return 结果
     */
    @Override
    public int deleteOrganizationByIds(String[] ids)
    {
        return organizationMapper.deleteOrganizationByIds(ids);
    }

    /**
     * 删除内设机构信息
     * 
     * @param id 内设机构主键
     * @return 结果
     */
    @Override
    public int deleteOrganizationById(String id)
    {
        return organizationMapper.deleteOrganizationById(id);
    }
}
